package ink.lovejinhu.leetcode;

/**
 * @author jinhu
 * created 2021-07-13 11:15
 */
public class Solution_0342 {
    /**
     * @param n
     * @return
     */
    public boolean isPowerOfFour(int n) {
        while (n > 1 && n % 4 == 0) {
            n = n / 4;
        }
        return n == 1;
    }
}
